package com.rfy.novel.api;

import com.rfy.base.entity.response.BaseResponse;
import com.rfy.novel.request.ReadNovelContentRequest;
import com.rfy.novel.request.WebsiteRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;


/**
 * @author zhanghuiyong
 * @创建时间 2019年07月16日
 * @描述: 小说阅读模块
 **/
@Api(tags = "小说阅读模块")
@RequestMapping("/rly/novel/")
public interface NovelApi {

    /**
     * 查询小说
     *
     * @param novelRequestVo
     * @param response
     * @return
     */
    @ApiOperation(value = "查询小说")
    @PostMapping("/queryNovel")
    BaseResponse queryNovel(WebsiteRequest novelRequestVo, HttpServletResponse response);

    /**
     * 阅读小说内容
     *
     * @param novelRequestVo
     * @param response
     * @return
     */
    @ApiOperation(value = "阅读小说内容")
    @PostMapping("/readNovelContent")
    BaseResponse readNovelContent(ReadNovelContentRequest novelRequestVo, HttpServletResponse response);


}
